package com.youway.ddd.demo2.domain.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


import lombok.Data;

/**
 * Book 与 Bookshelf关联 值对象 持久化对象
 * 本质上标识一个中间关系 无唯一标识
 * 因其具有事务上的关联性 , 将其持久化在数据库中
 * @author youway
 *
 */
@Data
@Entity
@Table(name = "bookstore_rel")
public class BookStoreRel {

	@Column(name = "book_id")
	private Long bookId;
	
	@Column(name = "bookshelf_id")
	private Long bookshelfId;
	
}
